package Mateusz_Flieger;


import java.util.Scanner;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Nozdi
 */
public class Kolo {
    private double r;
    
    Kolo (double r){
        r=this.r;
    }
    Kolo (Kolo nowe){
        r = nowe.r;
    }
    
    double jakie_r() {
		System.out.println("Podaj nasze r");
		Scanner sc = new Scanner(System.in);
                r = (sc.nextDouble()); 
                return r;
    }
    
    double pole(Kolo a){
        return (Math.PI*a.r*a.r);
    }
    double srednica(Kolo a){
        return (a.r+a.r);}
    
    double obowd(Kolo a){
        return(2*a.r*Math.PI);
}
}
